﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    //可以在CookRobot中添加一个代表菜的类型的字段，用枚举类型；

    public enum Giao
    {
        Niu,
        Yu,
        Ao

    }

    //炒菜机器人类
    class CookRobot :Robot
    {
        public String Cai;
        public Giao  Niu;
        public Giao Yu;
        public Giao Ao;
        public CookRobot()
        {

        }
        public CookRobot(string Name,String Cai,Giao Niu,Giao Yu,Giao Ao):base( Name){
            this.Cai=Cai;
           this.Niu = Niu;
           this.Yu = Yu;
           this.Ao = Ao;
        }
        public override void Working()
        {
         
            Console.WriteLine("梦林哥哥你好！！！我是机器人{0}，请问哥哥你要炒什么菜呢？？{1},{2,{3}}",this.Name,this.Niu,this.Yu,this.Ao);
            
        }
    }
}
